@import "../../../../style/var";
@import "../../../../style/mixin";

.course-wrap {
    background-color: #fff;

    .section-title {
        margin: 0;
    }

    .filter-wrap {
        position: relative;
        padding: 20px;

        .filter-btn {
            position: relative;
            background-color: $main-color-mobile;
            height: 70px;
            color: #fff;
            font-size: 30px;

            .toggle {
                cursor: pointer;
            }

            .clear {
                position: absolute;
                right: 20px;
                color: #962d2e;
                font-size: 24px;
                cursor: pointer;
                font-weight: 700;
            }
        }

        .filter-form {
            position: absolute;
            top: 90px;
            left: 0;
            right: 0;
            background-color: #fff;
            padding: 20px 20px 20px;
            border-bottom: 1px solid #eee;
            box-shadow: 5px 10px 10px #999;

            .zw-block {
                height: 120px;
            }

            .search-inp {
                position: relative;

                input {
                    width: 100%;
                    height: 60px;
                    border-radius: 30px;
                    padding-left: 60px;
                    background-color: #fff;
                    outline: none;
                    border: 1px solid #ccc;
                    font-size: 30px;
                }

                i {
                    position: absolute;
                    left: 0;
                    top: 0;
                    bottom: 0;
                    width: 60px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-size: 30px;
                    color: #666;
                }
            }

            .form-item {
                padding: 20px 0 0;

                .label {
                    color: #333;
                    font-size: 26px;
                    margin-bottom: 20px;
                }

                .checkbox-group {
                    display: flex;
                    flex-wrap: wrap;

                    .item {
                        flex: 0 0 220px;
                        background-color: #f1f1f1;
                        padding: 20px 5px;
                        font-size: 24px;
                        text-align: center;
                        margin: 0 20px 20px 0;

                        &:nth-child(3n) {
                            margin-right: 0;
                        }

                        &.active {
                            background-color: #f9eded;
                        }
                    }
                }

                .van-radio {
                    margin-right: 1em;
                    margin-bottom: 15px;
                }

                .van-radio-group {
                    flex-wrap: wrap;
                }
            }

        }

        .down {
            height: 70px;
            cursor: pointer;
            display: flex;
            margin-top: 20px;

            button {
                flex: 1;
                border: none;
                outline: none;
                height: 100%;
                color: #454545;
                background: #f1f1f1;

                &:nth-child(2) {
                    color: #fff;
                    background: #e85b5b;
                }
            }
        }
    }

    .sort-wrap {
        display: flex;
        margin-bottom: 20px;

        .item {
            height: 60px;
            line-height: 60px;
            text-align: center;
            padding: 0 20px;
            font-size: 26px;
            color: #454545;
            flex: 1;

            &.active {
                color: #000;
                font-weight: 700;
            }

            i {
                font-size: 26px;
            }
        }
    }

    .course-list {
        padding: 0 20px;

        .item {
            padding-bottom: 20px;

            img {
                display: block;
                width: 100%;
            }

            .info {
                padding: 0 20px 10px;
                background-color: #f8f8f8;
                border: 1px solid #e9e9e9;
                border-top: none;
            }

            .name {
                padding: 20px 0;
                font-size: 28px;
                color: #333;
            }

            .suit {
                font-size: 23px;
                color: #6a6a6a;
            }

            .bottom {
                padding: 10px 0;
                display: flex;
                align-items: center;
                justify-content: space-between;
            }

            .price {
                color: $main-color-price;
                font-size: 40px;
                padding-left: 0;

                small {
                    font-size: 26px;
                }
            }

            .btn {
                padding: 15px 40px;
                background: linear-gradient(to right, #ef8b54, #e74237);
                border-radius: 13px;
                color: #fff;
            }
        }
    }

    .banner {
        position: relative;

        .swiper-pagination {
            position: absolute;
            left: 50%;
            bottom: 10px;
            transform: translateX(-50%);

            .swiper-pagination-bullet {
                margin: 0 10px;
            }
        }
    }

    .c-name {
        position: relative;
        z-index: 20;
        background-color: #fff;
        padding: 20px;
        line-height: 1.5;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        margin-top: -30px;

        &.br {
            border-radius: 15px;
        }

        .cf-info {
            padding: 10px 0 20px 0;
            margin-top: 10px;
            color: #666;
            border-bottom: 1px solid #eee;

            .label {
                padding-right: 10px;
            }
        }

        .price {
            padding: 10px 0 0 0;
            font-size: 35px;

            small {
                color: $main-color-price !important;
            }
        }
    }

    .price {
        color: $main-color-price;
        padding: 0 20px 20px;

        small {
            font-size: 24px;
            color: #999;

        }
    }

    .c-time-date-list {
        display: flex;
        flex-wrap: wrap;
        background-color: #fff;
        padding: 20px;
        padding-left: 22px;
        padding-bottom: 0;
        margin-bottom: 20px;

        .item {
            width: 170px;
            flex: 0 0 160px;
            border: 1px solid #eee;
            text-align: center;
            margin-right: 20px;
            margin-bottom: 17px;
            border-radius: 10px;
            padding: 10px 0;
            cursor: pointer;

            &:nth-child(4n) {
                margin-right: 0;
            }

            .d {
                font-size: 22px;
            }

            .p {
                color: $main-color-price;
                font-size: 28px;
            }

            .text {
                font-size: 24px;
            }

            &.active {
                background: $main-color-price;
                color: #fff;

                .p {
                    color: #fff;
                }
            }
        }
    }

    .tcdp {
        padding: 20px;
        font-size: 28px;
        color: #666;
        line-height: 1.5;
        border-bottom: 20px solid #f0f0f0;
    }

    .detail-html {
        border-bottom: 20px solid #f0f0f0;
    }

    .fix-bar-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 110px;
        background-color: #fff;
        padding: 20px 20px 20px 0;
        border-top: 1px solid #ccc;
        cursor: pointer;

        &.ipx {
            height: calc(34px + 1.47rem); /*no*/
            padding-bottom: calc(34px + 0.27rem); /*no*/
        }

        .item {
            color: #727272;
            font-size: 24px;
            text-align: center;
            padding: 0 20px;

            i {
                font-size: 50px;
                width: 50px;
                height: 50px;
                display: block;
                margin: 0 auto 5px;
            }

            .icon-service {
                font-size: 55px;
            }
        }
    }
}

.course-form-wrap {
    padding: 1px 20px 110px;
    background: transparent;

    .pay-state {

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 10vh;
        line-height: 1.7;

        i {
            color: $main-color-price;
            font-size: 100px;
            line-height: 1;
            margin-bottom: 20px;
        }
    }

    .c-name {
        margin-bottom: 20px;
        margin-top: 20px;
        box-shadow: 5px 5px 10px #999;
    }

    .c-time-date-list {
        .item {
            flex: 0 0 150px;
        }
    }

    .max-h {
        padding: 20px 0;

        & > div {
            max-height: 400px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            flex-wrap: wrap;
            padding: 0 20px;
        }
    }

    .form-wrap {
        padding: 20px;
        background-color: #fff;
        margin-bottom: 20px;
    }

    .xieyi {
        font-size: 23px;
        padding: 10px 10px 20px;
        color: #454545;
        background-color: #fff;
        margin-bottom: 20px;

        .detail-html {
            border: none;
        }
    }

    .pay-type {
        background-color: #fff;
        padding: 0 10px;
        border-radius: 15px;
        margin-bottom: 40px;

        .item {
            display: flex;
            padding: 25px 10px;
            align-items: center;
            border-bottom: 1px solid #eee;
            cursor: pointer;

            &:last-of-type {
                border-bottom: none;
            }

            svg {
                width: 50px;
                height: 50px;
                margin-right: 10px;
            }

            &.active {
                background: url("data:image/svg+xml,%3Csvg class='icon' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath d='M235.947 472.939L190.72 518.25l210.09 209.514 432.363-427.69-45.013-45.483-387.157 382.976z' data-spm-anchor-id='a313x.7781069.0.i0' class='selected' fill='%23bf0002'/%3E%3C/svg%3E") no-repeat center right;
                background-size: 50px;
            }
        }
    }

    .bg-card {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: $main-color;
        z-index: 0;
    }

    & > div {
        position: relative;

    }
}

.course-detail-wrap {
    padding-bottom: 110px;

    .banner {
        img {
            display: block;
            width: 100%;
        }
    }

    .detail-html {
        padding: 0 20px;
    }
}
